import { CommonEntity } from 'src/common/entities/common.entity';
import { Column, Entity, ManyToMany } from 'typeorm';
import { Article } from 'src/modules/article/entity/article.entity';

@Entity()
export class Tag extends CommonEntity {
  @Column()
  label: string;

  @ManyToMany(() => Article, (article) => article.tags)
  articles?: Article[];
}
